package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@Data
@NoArgsConstructor
public class User {
   Integer id;
    String name;
   String password;		//密码
   String email	;  //邮箱
   String phone	;   //varchar(15)	电话号码
    @TableField(value = "create_time",fill = FieldFill.INSERT)
   LocalDateTime createTime;  	//datetime	注册时间
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
  LocalDateTime  updateTime;	//datetime	修改时间
}
